package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "OrderLogisticsDTO对象", description = "订单物流")
public class OrderLogisticsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@NotNull
	@ApiModelProperty(value = "类型：1全部发货 2部分发货")
	private Integer type;
	@NotNull
	@ApiModelProperty(value = "订单id")
	private Long orderId;

	@ApiModelProperty(value = "物流id")
	private Long logisticsId;

    @ApiModelProperty(value = "物流单号")
    private String logisticsNo;

	@NotNull
	@ApiModelProperty(value = "物流类型：0(暂无物流，自己配送) 1(物流发货，第三方配送)")
	private Integer logisticsType;

	@ApiModelProperty(value = "发货明细")
	private List<OrderLogisticsDetailDTO> detailList;

}
